Optimal. Leaf size=145 \[ \frac {x \sqrt {a+b x^2} \left (5 a^2 f-6 a b e+8 b^2 d\right )}{16 b^3}+\frac {\tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right ) \left (-5 a^3 f+6 a^2 b e-8 a b^2 d+16 b^3 c\right )}{16 b^{7/2}}+\frac {x^3 \sqrt {a+b x^2} (6 b e-5 a f)}{24 b^2}+\frac {f x^5 \sqrt {a+b x^2}}{6 b} \]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 145, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {1815, 1159, 388, 217, 206} \begin {gather*} \frac {\tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right ) \left (6 a^2 b e-5 a^3 f-8 a b^2 d+16 b^3 c\right )}{16 b^{7/2}}+\frac {x \sqrt {a+b x^2} \left (5 a^2 f-6 a b e+8 b^2 d\right )}{16 b^3}+\frac {x^3 \sqrt {a+b x^2} (6 b e-5 a f)}{24 b^2}+\frac {f x^5 \sqrt {a+b x^2}}{6 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 217
Rule 388
Rule 1159
Rule 1815
Rubi steps
\begin {align*} \int \frac {c+d x^2+e x^4+f x^6}{\sqrt {a+b x^2}} \, dx &=\frac {f x^5 \sqrt {a+b x^2}}{6 b}+\frac {\int \frac {6 b c+6 b d x^2+(6 b e-5 a f) x^4}{\sqrt {a+b x^2}} \, dx}{6 b}\\ &=\frac {(6 b e-5 a f) x^3 \sqrt {a+b x^2}}{24 b^2}+\frac {f x^5 \sqrt {a+b x^2}}{6 b}+\frac {\int \frac {24 b^2 c+3 \left (8 b^2 d-6 a b e+5 a^2 f\right ) x^2}{\sqrt {a+b x^2}} \, dx}{24 b^2}\\ &=\frac {\left (8 b^2 d-6 a b e+5 a^2 f\right ) x \sqrt {a+b x^2}}{16 b^3}+\frac {(6 b e-5 a f) x^3 \sqrt {a+b x^2}}{24 b^2}+\frac {f x^5 \sqrt {a+b x^2}}{6 b}-\frac {1}{16} \left (-16 c+\frac {a \left (8 b^2 d-6 a b e+5 a^2 f\right )}{b^3}\right ) \int \frac {1}{\sqrt {a+b x^2}} \, dx\\ &=\frac {\left (8 b^2 d-6 a b e+5 a^2 f\right ) x \sqrt {a+b x^2}}{16 b^3}+\frac {(6 b e-5 a f) x^3 \sqrt {a+b x^2}}{24 b^2}+\frac {f x^5 \sqrt {a+b x^2}}{6 b}-\frac {1}{16} \left (-16 c+\frac {a \left (8 b^2 d-6 a b e+5 a^2 f\right )}{b^3}\right ) \operatorname {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )\\ &=\frac {\left (8 b^2 d-6 a b e+5 a^2 f\right ) x \sqrt {a+b x^2}}{16 b^3}+\frac {(6 b e-5 a f) x^3 \sqrt {a+b x^2}}{24 b^2}+\frac {f x^5 \sqrt {a+b x^2}}{6 b}+\frac {\left (16 c-\frac {a \left (8 b^2 d-6 a b e+5 a^2 f\right )}{b^3}\right ) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{16 \sqrt {b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 118, normalized size = 0.81 \begin {gather*} \frac {\sqrt {b} x \sqrt {a+b x^2} \left (15 a^2 f-2 a b \left (9 e+5 f x^2\right )+4 b^2 \left (6 d+3 e x^2+2 f x^4\right )\right )+3 \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right ) \left (-5 a^3 f+6 a^2 b e-8 a b^2 d+16 b^3 c\right )}{48 b^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.18, size = 123, normalized size = 0.85 \begin {gather*} \frac {\sqrt {a+b x^2} \left (15 a^2 f x-18 a b e x-10 a b f x^3+24 b^2 d x+12 b^2 e x^3+8 b^2 f x^5\right )}{48 b^3}+\frac {\log \left (\sqrt {a+b x^2}-\sqrt {b} x\right ) \left (5 a^3 f-6 a^2 b e+8 a b^2 d-16 b^3 c\right )}{16 b^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.01, size = 250, normalized size = 1.72 \begin {gather*} \left [-\frac {3 \, {\left (16 \, b^{3} c - 8 \, a b^{2} d + 6 \, a^{2} b e - 5 \, a^{3} f\right )} \sqrt {b} \log \left (-2 \, b x^{2} + 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) - 2 \, {\left (8 \, b^{3} f x^{5} + 2 \, {\left (6 \, b^{3} e - 5 \, a b^{2} f\right )} x^{3} + 3 \, {\left (8 \, b^{3} d - 6 \, a b^{2} e + 5 \, a^{2} b f\right )} x\right )} \sqrt {b x^{2} + a}}{96 \, b^{4}}, -\frac {3 \, {\left (16 \, b^{3} c - 8 \, a b^{2} d + 6 \, a^{2} b e - 5 \, a^{3} f\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) - {\left (8 \, b^{3} f x^{5} + 2 \, {\left (6 \, b^{3} e - 5 \, a b^{2} f\right )} x^{3} + 3 \, {\left (8 \, b^{3} d - 6 \, a b^{2} e + 5 \, a^{2} b f\right )} x\right )} \sqrt {b x^{2} + a}}{48 \, b^{4}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.56, size = 129, normalized size = 0.89 \begin {gather*} \frac {1}{48} \, {\left (2 \, {\left (\frac {4 \, f x^{2}}{b} - \frac {5 \, a b^{3} f - 6 \, b^{4} e}{b^{5}}\right )} x^{2} + \frac {3 \, {\left (8 \, b^{4} d + 5 \, a^{2} b^{2} f - 6 \, a b^{3} e\right )}}{b^{5}}\right )} \sqrt {b x^{2} + a} x - \frac {{\left (16 \, b^{3} c - 8 \, a b^{2} d - 5 \, a^{3} f + 6 \, a^{2} b e\right )} \log \left ({\left | -\sqrt {b} x + \sqrt {b x^{2} + a} \right |}\right )}{16 \, b^{\frac {7}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 203, normalized size = 1.40 \begin {gather*} \frac {\sqrt {b \,x^{2}+a}\, f \,x^{5}}{6 b}-\frac {5 \sqrt {b \,x^{2}+a}\, a f \,x^{3}}{24 b^{2}}+\frac {\sqrt {b \,x^{2}+a}\, e \,x^{3}}{4 b}-\frac {5 a^{3} f \ln \left (\sqrt {b}\, x +\sqrt {b \,x^{2}+a}\right )}{16 b^{\frac {7}{2}}}+\frac {3 a^{2} e \ln \left (\sqrt {b}\, x +\sqrt {b \,x^{2}+a}\right )}{8 b^{\frac {5}{2}}}-\frac {a d \ln \left (\sqrt {b}\, x +\sqrt {b \,x^{2}+a}\right )}{2 b^{\frac {3}{2}}}+\frac {c \ln \left (\sqrt {b}\, x +\sqrt {b \,x^{2}+a}\right )}{\sqrt {b}}+\frac {5 \sqrt {b \,x^{2}+a}\, a^{2} f x}{16 b^{3}}-\frac {3 \sqrt {b \,x^{2}+a}\, a e x}{8 b^{2}}+\frac {\sqrt {b \,x^{2}+a}\, d x}{2 b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.35, size = 174, normalized size = 1.20 \begin {gather*} \frac {\sqrt {b x^{2} + a} f x^{5}}{6 \, b} + \frac {\sqrt {b x^{2} + a} e x^{3}}{4 \, b} - \frac {5 \, \sqrt {b x^{2} + a} a f x^{3}}{24 \, b^{2}} + \frac {\sqrt {b x^{2} + a} d x}{2 \, b} - \frac {3 \, \sqrt {b x^{2} + a} a e x}{8 \, b^{2}} + \frac {5 \, \sqrt {b x^{2} + a} a^{2} f x}{16 \, b^{3}} + \frac {c \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {b}} - \frac {a d \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{2 \, b^{\frac {3}{2}}} + \frac {3 \, a^{2} e \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{8 \, b^{\frac {5}{2}}} - \frac {5 \, a^{3} f \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{16 \, b^{\frac {7}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {f\,x^6+e\,x^4+d\,x^2+c}{\sqrt {b\,x^2+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 13.71, size = 362, normalized size = 2.50 \begin {gather*} \frac {5 a^{\frac {5}{2}} f x}{16 b^{3} \sqrt {1 + \frac {b x^{2}}{a}}} - \frac {3 a^{\frac {3}{2}} e x}{8 b^{2} \sqrt {1 + \frac {b x^{2}}{a}}} + \frac {5 a^{\frac {3}{2}} f x^{3}}{48 b^{2} \sqrt {1 + \frac {b x^{2}}{a}}} + \frac {\sqrt {a} d x \sqrt {1 + \frac {b x^{2}}{a}}}{2 b} - \frac {\sqrt {a} e x^{3}}{8 b \sqrt {1 + \frac {b x^{2}}{a}}} - \frac {\sqrt {a} f x^{5}}{24 b \sqrt {1 + \frac {b x^{2}}{a}}} - \frac {5 a^{3} f \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{16 b^{\frac {7}{2}}} + \frac {3 a^{2} e \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{8 b^{\frac {5}{2}}} - \frac {a d \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{2 b^{\frac {3}{2}}} + c \left (\begin {cases} \frac {\sqrt {- \frac {a}{b}} \operatorname {asin}{\left (x \sqrt {- \frac {b}{a}} \right )}}{\sqrt {a}} & \text {for}\: a > 0 \wedge b < 0 \\\frac {\sqrt {\frac {a}{b}} \operatorname {asinh}{\left (x \sqrt {\frac {b}{a}} \right )}}{\sqrt {a}} & \text {for}\: a > 0 \wedge b > 0 \\\frac {\sqrt {- \frac {a}{b}} \operatorname {acosh}{\left (x \sqrt {- \frac {b}{a}} \right )}}{\sqrt {- a}} & \text {for}\: b > 0 \wedge a < 0 \end {cases}\right ) + \frac {e x^{5}}{4 \sqrt {a} \sqrt {1 + \frac {b x^{2}}{a}}} + \frac {f x^{7}}{6 \sqrt {a} \sqrt {1 + \frac {b x^{2}}{a}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________